/**
 * Created by Freeman on 2016/8/12.
 */
import React, {PropTypes} from 'react'
import './css/preview.css'
import {mark} from '../../utils'
const Preview = ({title,content}) => {

    return (
        <div className="col-lg-6 preview" style={{maxHeight: 995+'px',minHeight: 995+'px'}}>
            <h1 className="title mousetrap" >{title}</h1>
            <div className="content mousetrap" dangerouslySetInnerHTML={{__html:mark(content)}}>
            </div>
        </div>
    )

};
Preview.propTypes = {
    title:PropTypes.string.isRequired,
    content:PropTypes.string.isRequired,
};

export default Preview